package org.seckill.dto;

/**
 * Created by LJ on 2016/6/24.
 */
//所有AJAX请求返回类型，封装json结果
public class SeckillResult<T> {

    private  boolean success;

    private T data;

    private String error;

    
    public SeckillResult(boolean success,String error) {
        this.error = error;
        this.success = success;
    }

    public SeckillResult(boolean success,T data) {
        this.data = data;
        this.success = success;
    }
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

  
}
